<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>声音消息列表</title>
	<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
	<link rel="stylesheet" type="text/css" href="${basePath}/css/style-1.css" />
	<link rel="stylesheet" type="text/css" href="${basePath}/css/style_2_common.css" />
	<link rel="stylesheet" type="text/css" href="${basePath}/css/more_img.css" />
	<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="${basePath}/js/audiojs/audio.min.js"></script>
	<link rel="stylesheet" type="text/css" href="${basePath}/js/layer/skin/layer.css" />
    <script type="text/javascript" src="${basePath}/js/layer/layer.m.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
	<#assign current='menu_voice'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<!--中间内容-->
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
					<#include "/include/left.html"/>
					<#include "/include/wxtop.html"/>
					<div class="content">
						<div class="cLineB">
							<h4 style="font-size:16px;">自定义回复信息</h4>
							<div class="clr"></div>
						</div>
						<div class="cLine">
							<div class="pageNavigator left">
								<a class="btnGrayS vm bigbtn" href="${basePath}/admin/voice/add"><img class="vm" src="${basePath}/images/music.png">新增语音回复</a>
							</div>
							<div class="clr"></div>
						</div>
						<div class="msgWrap">
							<table class="ListProduct Shallow_border_color" border="0"
								cellSpacing="0" cellPadding="0" width="100%">
								<thead>
									<tr>
										<th>序号</th>
										<th class="keywords">关键词</th>
										<th class="keywords">标题</th>
										<th class="answer">试听</th>
										<th class="time">时间</th>
										<th class="edit norightborder">操作</th>
									</tr>
								</thead>
								<tbody>
									<#if page?exists>
									<#list page.recordList as bean>
									<tr>
										<td>${bean_index+1}</td>
										<td title="${bean.keywords?default('')}">${bean.keywords?default('')}</td>
										<td title="${bean.title?default('')}">${bean.title?default('')}</td>
										<td><audio src="${bean.linkUrl?default('')}" preload="none" /></td>
										<td>${bean.createTime?date?default('')}</td>
										<td class="norightborder">
											<a href="${basePath}/admin/voice/edit?id=${bean.id?default(0)}" title="编辑声音回复">编辑</a>
											<a href="javascript:void(0);" onclick="deleteItem(${bean.id?default(0)});">删除</a>
										</td>
									</tr>
									</#list>
									</#if>
								</tbody>
							</table>
						</div>
						<#assign formUrl="${basePath}/voice/list?">
						<#include "include/pagination.html"/>
					</div>
					<div class="clr"></div>
				</div>
			</div>
		</div>
		<!--底部-->
	</div>
	<#include "/include/footer.html"/>
	
	<script type="text/javascript">
	  audiojs.events.ready(function(){audiojs.createAll();});
	  
	  $(function(){
		  $("#chkall").click(function(){
			  if($(this).attr('checked')=='checked'){
				  $(":checkbox[name='id']").attr('checked','checked');
			  }else{
				  $(":checkbox[name='id']").removeAttr('checked');
			  }
		  });
	  });
	  function deleteItem(id){
		  var url = '${basePath}/admin/voice/del?id='+id;
		  layer.confirm('确定要删除吗？',{icon:4},function(index){
			  layer.close(index);
			  window.location.href=url;
		  },function(index){
			  layer.close(index);
		  });
	  }
	</script>
</body>
</html>